package cn.tedu;

import cn.tedu.pojo.Car;
import cn.tedu.pojo.Student;
import org.junit.jupiter.api.Test;

public class test {
    @Test
    public void get(){
        Car c = new Car();
        c.setId(1);
        c.setName("Porsche");
        c.setColor("red");
        c.setPrice(150000.0);
        System.out.println(c);
    }
    @Test
    public void get2(){
        Student s = new Student();
        s.setName("小明");
        s.setGender(true);
        s.setId("001");
        s.setAge(10);
        System.out.println(s);
        Student bubu = new Student("布布", "778", true, 6);
        System.out.println(bubu.getName());
        System.out.println(bubu);
        Student s2 = new Student();
        s2.setName("小张").setGender(true).setAge(11).setId("002");
        System.out.println(s2);
    }
}
